package com.xh.web.controller;

import com.xh.common.utils.ApplicationContextHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;

/**
 * @Name UserController
 * @Description
 * @Author wen
 * @Date 2019-11-08
 */
@RestController
@RequestMapping("v1/test")
public class TestController {

    @RequestMapping(value = "111", method = RequestMethod.GET)
    public String user(){
        Arrays.stream(ApplicationContextHelper.getInstance().getBeanDefinitionNames())
                .forEach(System.err::println);
        return "hellow spring mvc!!!";
    }


}
